package com.five.service.impl;

import com.five.dao.FileGroupMapper;
import com.five.entity.FileGroup;
import com.five.service.FileGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/2/26.
 */
@Service("FileGroupService")
public class FileGroupServiceImpl implements FileGroupService {

    @Autowired
    private FileGroupMapper fileGroupMapper;

    @Override
    public void addFileGroup(FileGroup fileGroup) {
        fileGroupMapper.insertSelective(fileGroup);
    }


    /**
     * 通过id获取信息
     * @param fileGroupId
     * @return
     */
    @Override
    public FileGroup findFileGroupById(Integer fileGroupId) {
        return fileGroupMapper.selectByPrimaryKey(fileGroupId);
    }

}
